home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / sdi / global.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-06-18  |  2.6 KB  |  92 lines

  1. /**********************************  global.c  ***********************/
  2. #include "sdi.h"
  3.  
  4. /*
  5.  * Copyright 1987 by Mark Weiser.
  6.  * Permission to reproduce and use in any manner whatsoever on Suns is granted
  7.  * so long as this copyright and other identifying marks of authorship
  8.  * in the code and the game remain intact and visible.  Use of this code
  9.  * in other products is reserved to me--I'm working on Mac and IBM versions.
  10.  */
  11.  
  12. int        ballistic_delay = 4;
  13. Panel_item    ballistic_item;
  14. struct pixfont    *bigfont, *buttonfont; /* use 'struct pixfont' for 3.0 compatibility */
  15. int            blast_count = 0;
  16. long        blast_delay = 150000;
  17. int            burst_distance = 32;
  18. float        carryover_divisor = 1.0;
  19. int            city_fd;
  20. int            cursor_type = 0;
  21. int            launch_fd;
  22. Canvas        citycanvas;
  23. Frame        cityframe;
  24. Pixwin        *citypw;
  25. int            continuous;
  26. Frame        controlframe;
  27. float        foe_divisor = 2.0;
  28. int            foe_factor = 5;
  29. Panel_item    foe_ground_item;
  30. Panel_item    foe_item;
  31. int            foe_value = 5;
  32. struct pixfont    *font;    /* struct used for 3.0 compatibility */
  33. int            gamemaster = 0;
  34. int            field_margin = 32;
  35. Panel_item    interceptor_item;
  36. Panel_item    laser_item;
  37. int            launch_delay = 4;
  38. Canvas        launchcanvas;
  39. Frame        launchframe;
  40. Pixwin        *launchpw;
  41. Panel_item    level_item;
  42. int            max_x = 440;
  43. int            max_y = 250;
  44. int            max_missile_speed = 25;
  45. int            min_missile_speed = 7;
  46. int            missile_count = 0;
  47. Pixwin        *need_a_bell = NULL;
  48. Panel_item    next_round_item;
  49. int            num_cities = 0;
  50. char         *panel_common[] = {
  51.     (char *)PANEL_VALUE,        (char *)1,
  52.     (char *)PANEL_MIN_VALUE,    (char *)0,
  53.     (char *)PANEL_MAX_VALUE,    (char *)0,
  54.     (char *)PANEL_VALUE,        (char *)0,
  55.     (char *)PANEL_SHOW_RANGE,    (char *)FALSE,
  56.     (char *)PANEL_SHOW_VALUE,    (char *)TRUE,
  57.     (char *)PANEL_EVENT_PROC,    (char *)no_events,
  58.     (char *)PANEL_SLIDER_WIDTH,    (char *)150,
  59.     (char *)0 };
  60. int            restoring_game = 0;
  61. Panel_item    resume_item;
  62. Panel_item    rock_item;
  63. int            running = 0;
  64. Panel_item    save_file_item;
  65. char         save_file_name[128] = "sdi_saved_game";
  66. struct scores sc[NUM_SCORES+1], 
  67.             *sc_end = &sc[NUM_SCORES];
  68. char        *scorefile = NULL;
  69. Panel_item    score_item;
  70. Panel_item    skill_item;
  71. int            starting_icon = 1;
  72. int            starting_icon_time = 5;
  73. int            starting_skill = 0;
  74. Panel_item    suspend_item;
  75. int            suspended = 0;
  76. int            time_to_play = 0;
  77. Panel_item    total_foe_item;
  78. int            total_cities_lost;
  79. char         user_name[128] = "(nobody)";
  80. Panel_item    user_name_item;
  81.  
  82. struct circ *lasercircles;
  83. struct circ *laserkillcircles;
  84. struct circ *bigblastcircles;
  85. struct circ *littleblastcircles;
  86. struct circ *blastkillcircles;
  87. struct circ *citykillcircles;
  88. struct circ *littlerockcircles;
  89. struct circ *bigrockcircles;
  90.  
  91. struct pixrect **blankcircles;
  92.